var docLibNode = companyhome.childByNamePath("/Sites/" + args.site
		+ "/documentLibrary")
if (args.path == "root") {
	var searchedNode = docLibNode;
} else {
	// call service with nodePath param
	var searchedNode = docLibNode.childByNamePath(args.path);
}

model.result=searchedNode.nodeRef;